<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.min.js"></script>
</head>
<body>
    <script>
        $(function(){
            //鼠标经过
            $('.nav>li').mousemove(function(){
                // $(this) jQuery 当前元素 this不要加引号
                //show() 显示元素
                $(this).children('ul').show();
            })
            //鼠标离开
            $('.nav>li').mouseout(function(){
                $(this).children('ul').hide();
            })
        })
    </script>
</body>
</html>